<script setup>
import {onMounted, ref} from "vue";
  const classNames =  ref(["active","normal","normal","normal"])
const classNames_win7 =  ref(["win7_active","win7_normal","win7_normal","win7_normal"])
</script>

<template>
  <ul class="tabs" @click="(e)=>{
    console.log(e)
  }">
    <li :class="value" v-for="(value,index) in classNames" @click="()=>{
            classNames.forEach((v,i)=>{
                 classNames[i]='normal'
            })
             classNames[index]='active'
    }" >win10/11_Tab{{index}}</li>
  </ul>
  <br/>
  <br/>
  <br/>

  <ul class="tabs" @click="(e)=>{
    console.log(e)
  }">
    <li :class="value" v-for="(value,index) in classNames_win7" @click="()=>{
            classNames_win7.forEach((v,i)=>{
                 classNames_win7[i]='win7_normal'
            })
             classNames_win7[index]='win7_active'
    }" >win7_Tab{{index}}</li>
  </ul>
</template>

<style scoped>
ul.tabs {
  margin: 0;
  padding: 0;
  float: left;
  list-style: none;
  height: 32px;
  /*border-bottom: 1px solid rgb(240,240,240);*/
  width: 100%;
}

ul.tabs li {
  float: left;
  margin: 0;
  cursor: pointer;
  padding: 0px 21px;
  height: 31px;
  line-height: 31px;

  border: 1px solid rgb(218, 218, 218);

  background-color: rgb(240,240,240);
  color: #ccc;
  overflow: hidden;
  position: relative;
}
ul.tabs li:hover {
  background-color: #ccc;
  color: #333;
}

ul.tabs li.active {
  background-color: #fff;
  color: #333;
  border-bottom: 0px;
  /*padding-bottom:20px ;*/
  height: 35px;
  transform: translateY(-3px);
  /*border-bottom: 1px solid #fff;*/
  transition: 0.3s;
  display: block;

}

.win7_normal{
  border:1px solid #262626 !important;
  /*box-shadow: 0 0 0 1px #707070;*/
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 2px;
  background: linear-gradient(
      to bottom,
      #f2f2f2 0%,
      #ebebeb 50%,
      #dddddd 51%,
      #cfcfcf 100%
  );
  font: normal 12px "Webly Sleek UI", "Frutiger", "Lucida Sans Unicode",
  "Lucida Grande", "Open Sans", sans-serif;
  color: black;
}
.win7_normal:hover{
  /*border:1px solid black;*/
  background: linear-gradient(
      to bottom,
      #eaf6fd 0%,
      #d9f0fc 50%,
      #bee6fd 51%,
      #a7d9f5 100%
  );
}
.win7_active{
  background: white;
  border:1px solid #262626 !important;
  /*box-shadow: 0 0 0 1px #707070;*/
  /*-moz-border-radius: 3px;*/
  /*-webkit-border-radius: 3px;*/
  border:1px solid black;
  border-radius: 2px;
  font: normal 12px "Webly Sleek UI", "Frutiger", "Lucida Sans Unicode",
  "Lucida Grande", "Open Sans", sans-serif;
  transform: translateY(-3px);
  height: 35px!important;
  color: #020202 !important;
  border-bottom: 0px !important;
}

</style>
